package tk.mynoteapp.dev.demo21.templatemethod.right;


import tk.mynoteapp.dev.demo21.templatemethod.Item;

import java.math.BigDecimal;

// 免运费、无折扣的内部用户购物车
public class InternalUserCart extends AbstractCart {

    @Override
    void processCouponPrice(long userId, Item item) {
        // 无优惠
        item.setCouponPrice(BigDecimal.ZERO);
    }

    @Override
    void processDeliveryPrice(long userId, Item item) {
        // 免运费
        item.setDeliveryPrice(BigDecimal.ZERO);
    }
}
